package com.hpf.gupao.pattern.singleton;

import com.hpf.gupao.pattern.singleton.lazy.LazySingleton;
import com.hpf.gupao.pattern.singleton.threadlocal.ThreadLocalSingleton;

/**
 * @description:
 * @datetime: 2021/5/17 20:23
 * @author: huangpengfei
 */
public class ExecutorThread implements Runnable {

    public void run() {
//        LazySingleton instance = LazySingleton.getInstance();
        ThreadLocalSingleton instance = ThreadLocalSingleton.getInstance();
        System.out.println(Thread.currentThread().getName() + ": " + instance);
    }
}
